<?php
/**
 * @author ykm 2015-12-15
 * @describe 应用级参数定义
 */
class erpapi_logistics_matrix_360buy_config extends erpapi_logistics_matrix_config{

    public function get_query_params($method, $params){
        $jdAccount = explode('|||',$this->__channelObj->channel['shop_id']);
        $jdObj = kernel::single('logisticsmanager_waybill_360buy');
        $shop = app::get('ome')->model('shop')->dump(array('shop_id'=>$jdAccount[1], 'node_id|noequal'=>'', 'node_type'=>'360buy'), 'shop_id,node_type,node_id,addon');
        $addon = $shop['addon'];
        if ($addon['type'] == 'SOP') {
            $query_params = array(
                'customerCode' => $jdAccount[0], //客户号
                'businessType' => $jdObj->businessType($this->__channelObj->channel['logistics_code']), //单据类型
                'to_node_id' => $shop['node_id'],
                'node_type' => $shop['node_type'],
            );
        }
        $pqp = parent::get_query_params($method, $params);
        $query_params = array_merge($pqp, $query_params);
        return $query_params;
    }
}